package engine.graphics;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureLoader;


public final class MADTextureLoader {

	public static Texture loadTexture(String texPath){
		try {
			return TextureLoader.getTexture("PNG", new FileInputStream(new File(texPath)));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null ; 
	}
}
